import cryptoJs from 'crypto-js'

const key = '1231564896AEBHRT';

export default {
    encrypt(text) {
        let hexkey = cryptoJs.enc.Utf8.parse(key);
        var encryptResult = cryptoJs.AES.encrypt(text, hexkey, {
            //iv: key,
            mode: cryptoJs.mode.ECB,
            padding: cryptoJs.pad.Pkcs7
        });
        return encryptResult.toString();
    }
}